package com.ruoyi.quartz.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.time.LocalDateTime;

/**
 * @ClassName: DeviceDataTask
 * @Description:
 * @author: lifei
 * @date: 2025年02月17日 17:12
 */

public class DeviceDataTask {

    /**
     * 数据ID
     */
    private Long dataId;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 设备ID
     */
    private Long deviceId;
    /**
     * 全名
     */
    private String fullName;
    /**
     * 性别
     */
    private String sex;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 身高
     */
    private String height;
    /**
     * 体重
     */
    private String weight;
    /**
     * BMI
     */
    private String bmi;
    /**
     * 心率
     */
    private Integer heartRate;
    /**
     * 睡眠质量
     */
    private String sleepQuality;
    /**
     * 步数
     */
    private Integer steps;
    /**
     * 睡眠时间（单位：小时）
     */
    private Double sleepDuration;
    /**
     * 运动时长（单位：分钟）
     */
    private Integer activeMinutes;
    /**
     * 血压收缩压
     */
    private Integer bloodPressureSystolic;
    /**
     * 血压舒张压
     */
    private Integer bloodPressureDiastolic;
    /**
     * 血氧
     */
    private Double bloodOxygen;
    /**
     * 日期
     *
     * @DateTimeFormat(pattern = "yyyy-MM-dd")
     */
    private LocalDateTime date;
    /**
     * 备注
     */
    private String remark;

    /**
     * Getters and setters
     */
    public Long getDataId() {
        return dataId;
    }

    public void setDataId(Long dataId) {
        this.dataId = dataId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getBmi() {
        return bmi;
    }

    public void setBmi(String bmi) {
        this.bmi = bmi;
    }

    public Integer getHeartRate() {
        return heartRate;
    }

    public void setHeartRate(Integer heartRate) {
        this.heartRate = heartRate;
    }

    public String getSleepQuality() {
        return sleepQuality;
    }

    public void setSleepQuality(String sleepQuality) {
        this.sleepQuality = sleepQuality;
    }

    public Integer getSteps() {
        return steps;
    }

    public void setSteps(Integer steps) {
        this.steps = steps;
    }

    public Double getSleepDuration() {
        return sleepDuration;
    }

    public void setSleepDuration(Double sleepDuration) {
        this.sleepDuration = sleepDuration;
    }

    public Integer getActiveMinutes() {
        return activeMinutes;
    }

    public void setActiveMinutes(Integer activeMinutes) {
        this.activeMinutes = activeMinutes;
    }

    public Integer getBloodPressureSystolic() {
        return bloodPressureSystolic;
    }

    public void setBloodPressureSystolic(Integer bloodPressureSystolic) {
        this.bloodPressureSystolic = bloodPressureSystolic;
    }

    public Integer getBloodPressureDiastolic() {
        return bloodPressureDiastolic;
    }

    public void setBloodPressureDiastolic(Integer bloodPressureDiastolic) {
        this.bloodPressureDiastolic = bloodPressureDiastolic;
    }

    public Double getBloodOxygen() {
        return bloodOxygen;
    }

    public void setBloodOxygen(Double bloodOxygen) {
        this.bloodOxygen = bloodOxygen;
    }

    public LocalDateTime getDate() {
        return date;
    }

    public void setDate(LocalDateTime date) {
        this.date = date;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("dataId", getDataId())
                .append("userId", getUserId())
                .append("fullName", getFullName())
                .append("sex", getSex())
                .append("age", getAge())
                .append("height", getHeight())
                .append("weight", getWeight())
                .append("BMI", getBmi())
                .append("heartRate", getHeartRate())
                .append("sleepQuality", getSleepQuality())
                .append("steps", getSteps())
                .append("sleepDuration", getSleepDuration())
                .append("activeMinutes", getActiveMinutes())
                .append("bloodPressureSystolic", getBloodPressureSystolic())
                .append("bloodPressureDiastolic", getBloodPressureDiastolic())
                .append("bloodOxygen", getBloodOxygen())
                .append("date", getDate())
                .append("remark", getRemark())
                .toString();
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }
}

